import { fetchApi } from '@/utils'

export const wxAuthGetToken = (data: { code: string; appId: string }) => {
	return fetchApi({
		url: '/wx/sns/login',
		method: 'POST',
		data,
	})
}

export const getSMSCode = (data: { mobile: string }) => {
	return fetchApi({
		url: '/verification-code/send',
		method: 'POST',
		data
	})
}